const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    https: true,
    proxy:{
      // 请求路径出现了 /api
      "/api":{
        target:"http://127.0.0.1:8080",
        // pathRewrite:{'^/api':''},//路径重写
      },
      "/file":{
        target:"http://127.0.0.1:8080",
        https: true
      }
    },
    port:443,
    client:{
      webSocketURL: 'wss://localhost:443/ws'
    },
    headers: {
      'Access-Control-Allow-Origin': '*', // 允许跨域请求
    },

  },
  // outputDir: '..\\mapWeb\\src\\main\\resources\\static'
  outputDir: './app/dist'
})
